.class Lrexsee/core/widget/DivDialog$1;
.super Ljava/lang/Object;
.source "DivDialog.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/widget/DivDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/widget/DivDialog;


# direct methods
.method constructor <init>(Lrexsee/core/widget/DivDialog;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 6
    .param p1, "v"    # Landroid/view/View;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/high16 v5, 0x41200000    # 10.0f

    .line 57
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 58
    .local v0, "a":I
    if-nez v0, :cond_1

    .line 59
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$0(Lrexsee/core/widget/DivDialog;F)V

    .line 60
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$1(Lrexsee/core/widget/DivDialog;F)V

    .line 61
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v4, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->x:F
    invoke-static {v4}, Lrexsee/core/widget/DivDialog;->access$2(Lrexsee/core/widget/DivDialog;)F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$3(Lrexsee/core/widget/DivDialog;F)V

    .line 62
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v4, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->y:F
    invoke-static {v4}, Lrexsee/core/widget/DivDialog;->access$4(Lrexsee/core/widget/DivDialog;)F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$5(Lrexsee/core/widget/DivDialog;F)V

    .line 76
    :cond_0
    :goto_0
    const/4 v3, 0x0

    return v3

    .line 63
    :cond_1
    const/4 v3, 0x2

    if-ne v0, v3, :cond_2

    .line 64
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {v3}, Lrexsee/core/widget/DivDialog;->getWindow()Landroid/view/Window;

    move-result-object v2

    .line 65
    .local v2, "window":Landroid/view/Window;
    invoke-virtual {v2}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    .line 66
    .local v1, "attr":Landroid/view/WindowManager$LayoutParams;
    iget v3, v1, Landroid/view/WindowManager$LayoutParams;->x:I

    int-to-float v3, v3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v4

    add-float/2addr v3, v4

    iget-object v4, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->x:F
    invoke-static {v4}, Lrexsee/core/widget/DivDialog;->access$2(Lrexsee/core/widget/DivDialog;)F

    move-result v4

    sub-float/2addr v3, v4

    float-to-int v3, v3

    iput v3, v1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 67
    iget v3, v1, Landroid/view/WindowManager$LayoutParams;->y:I

    int-to-float v3, v3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    add-float/2addr v3, v4

    iget-object v4, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->y:F
    invoke-static {v4}, Lrexsee/core/widget/DivDialog;->access$4(Lrexsee/core/widget/DivDialog;)F

    move-result v4

    sub-float/2addr v3, v4

    float-to-int v3, v3

    iput v3, v1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 68
    invoke-virtual {v2, v1}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 69
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$0(Lrexsee/core/widget/DivDialog;F)V

    .line 70
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    invoke-static {v3, v4}, Lrexsee/core/widget/DivDialog;->access$1(Lrexsee/core/widget/DivDialog;F)V

    goto :goto_0

    .line 71
    .end local v1    # "attr":Landroid/view/WindowManager$LayoutParams;
    .end local v2    # "window":Landroid/view/Window;
    :cond_2
    const/4 v3, 0x1

    if-eq v0, v3, :cond_3

    const/4 v3, 0x3

    if-ne v0, v3, :cond_0

    .line 72
    :cond_3
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->originalX:F
    invoke-static {v3}, Lrexsee/core/widget/DivDialog;->access$6(Lrexsee/core/widget/DivDialog;)F

    move-result v3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v4

    sub-float/2addr v3, v4

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v3

    cmpg-float v3, v3, v5

    if-gez v3, :cond_0

    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->originalY:F
    invoke-static {v3}, Lrexsee/core/widget/DivDialog;->access$7(Lrexsee/core/widget/DivDialog;)F

    move-result v3

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v4

    sub-float/2addr v3, v4

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v3

    cmpg-float v3, v3, v5

    if-gez v3, :cond_0

    .line 73
    iget-object v3, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v4, p0, Lrexsee/core/widget/DivDialog$1;->this$0:Lrexsee/core/widget/DivDialog;

    # getter for: Lrexsee/core/widget/DivDialog;->mDialog:Landroid/content/DialogInterface;
    invoke-static {v4}, Lrexsee/core/widget/DivDialog;->access$8(Lrexsee/core/widget/DivDialog;)Landroid/content/DialogInterface;

    move-result-object v4

    invoke-virtual {v3, v4}, Lrexsee/core/widget/DivDialog;->onClick(Landroid/content/DialogInterface;)V

    goto :goto_0
.end method
